package cn.stu.lqj.demo.controller;

import cn.stu.lqj.demo.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/dept")
public class DeptController {
    @Autowired(required = false)
    private DeptService deptService;

    @RequestMapping("/findDetailById")
    public String findDetailById(Integer empId, Model model) {
//        System.out.println(id+"Control-------------------");
        return deptService.findDetailById(empId, model);
    }
}
